/**
 * This class creates the Doctors Orders. It holds prescriptions, lab work, and
 * both sets of instructions.
 * 
 * @author evelyn942
 * @version 1.0 3-10-11
 */
import java.util.logging.Logger;

public class DoctorsOrders {
    
        private static final Logger myLogger = 
        			Logger.getLogger("src.(default package).DoctorsOrders");

        private String prescription, labWork, followUpInstructions,
                        otherInstructions;
/**
 * This is a constructor for DoctorsOrders class. It does not take in any variables and all information is set to null.          
 */
        public DoctorsOrders(){
        	prescription = null;
        	labWork = null;
        	followUpInstructions = null;
        	otherInstructions = null;
        }

/**
 * This is another constructor for DoctorsOrders. It takes in four parameters (all strings) of information for a particular patients
 * doctors orders record. This is an information holding class.
 * @param prescription  This is the prescription information for a patient (String) 
 * @param labWork
 * @param followUpInstructions
 * @param otherInstructions
 */
        public DoctorsOrders(String prescription, String labWork,
                             String followUpInstructions, String otherInstructions){
                this.prescription = prescription;
                this.labWork = labWork;
                this.followUpInstructions = followUpInstructions;
                this.otherInstructions = otherInstructions;
        }
/**
 * This is the method toString. It returns a blank string. 
 * @return Returns a blank string to be used in other classes. 
 */
        public String toString(){
        	return "";
        }
/**
 * This method/getter returns the "Other Instructions" in a string form for all classes and the database to access.         
 * @return Returns otherInstructions as a string to be stored in the database and to be accessed by other classes
 */
        public String getOtherInstructions(){
                return otherInstructions;
        }
/**
 * Setter for "Other Instructions" class. Sets the instructions in the form of a string for storage in database for that patient.
 * @param otherInstructions Takes in this parameter as a string. It will be used to store "Other Instructions" by the 
 * user (doctor or nurse) 
 */
        public void setOtherInstructions(String otherInstructions) {
                this.otherInstructions = otherInstructions;
        }
/**
 * This method/getter returns the "Follow Up Instructions" in a string form for all classes and the database to access.         
 * @return Returns followUpInstructions as a string to be stored in the database and to be accessed by other classes
 */
        public String getfollowUpInstructions() {
                return followUpInstructions;
        }
/**
 * Setter for "Follow Up Instructions" class. Sets the instructions in the form of a string for storage in database for that patient.
 * @param followUpInstructions Takes in this parameter as a string. It will be used to store "Other Instructions" by the 
 * user (doctor or nurse) 
 */
        public void setFollowUpInstructions(String followUpInstuctions) {
                this.followUpInstructions = followUpInstuctions;
        }
/**
 * This method/getter returns the "Lab Work" in a string form for all classes and the database to access.         
 * @return Returns labWork as a string to be stored in the database and to be accessed by other classes
 */
        public String getLabWork() {
                return labWork;
        }
/**
 * This setter takes in a string to set the lab work. The user (doctor or nurse) will enter in this information for each patient
 * where it will be stored in the database. 
 * @param labWork Takes in a string parameter to set the Lab Work for each patient
 */
        public void setLabWork(String labWork) {
                this.labWork = labWork;
        }
/**
 * This method/getter returns the "Prescriptions" in a string form for all classes and the database to access.         
 * @return Returns prescription as a string to be stored in the database and to be accessed by other classes
 */
        public String getPrescription() {
                myLogger.info("Getting Prescription");
                return prescription;
        }
/**
 * This setter takes in a string to set the prescription. The user (doctor or nurse) will enter in this information for each patient
 * where it will be stored in the database. 
 * @param prescription Takes in a string parameter to set the prescription for each patient
 */
        public void setPrescription(String prescription) {
                this.prescription = prescription;
                myLogger.info("Setting Prescription");
        }
}